/*
 * @Descripttion: 
 * @version: 
 * @Author: Zuo
 * @Date: 2021-09-29 14:20:57
 * @LastEditors: Zuo
 * @LastEditTime: 2021-09-29 15:25:15
 */
import { User } from '../../types'
import axios from '../http.conf'


/* 用户登陆 */
export function login(data: User) {
    return axios.post('user/login', data)
}

export function getCode(){
    return axios.post('user/verificationcode',{length:4})
}